import request from '@/utils/request'

// 查询机电设施定期检修列表
export function listJidiansheshidingqijianxiu(query) {
  return request({
    url: '/biz/jidiansheshidingqijianxiu/list',
    method: 'get',
    params: query
  })
}

// 查询机电设施定期检修详细
export function getJidiansheshidingqijianxiu(id) {
  return request({
    url: '/biz/jidiansheshidingqijianxiu/' + id,
    method: 'get'
  })
}

// 新增机电设施定期检修
export function addJidiansheshidingqijianxiu(data) {
  return request({
    url: '/biz/jidiansheshidingqijianxiu',
    method: 'post',
    data: data
  })
}

// 修改机电设施定期检修
export function updateJidiansheshidingqijianxiu(data) {
  return request({
    url: '/biz/jidiansheshidingqijianxiu',
    method: 'put',
    data: data
  })
}

// 删除机电设施定期检修
export function delJidiansheshidingqijianxiu(id) {
  return request({
    url: '/biz/jidiansheshidingqijianxiu/' + id,
    method: 'delete'
  })
}

// 导出机电设施定期检修
export function exportJidiansheshidingqijianxiu(query) {
  return request({
    url: '/biz/jidiansheshidingqijianxiu/export',
    method: 'get',
    params: query
  })
}